package nanocast.apps.creator.modules.sceneListModule.controller 
{
	import nanocast.apps.creator.modules.sceneListModule.view.SceneListJunctionMediator;	
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import nanocast.apps.creator.modules.sceneListModule.model.SceneListProxy;
	import nanocast.apps.creator.modules.sceneListModule.view.ApplicationMediator;
		

	public class StartupCommand extends SimpleCommand implements ICommand 
	{
		override public function execute(note : INotification):void
		{	
			facade.registerMediator(new SceneListJunctionMediator());
			facade.registerProxy(new SceneListProxy());
			
			var app : SceneList = note.getBody() as SceneList;
			facade.registerMediator(new ApplicationMediator(app));
		}
	}
}